package com.springframework.t.autowireDemo;

public class AnimalControl {
    private Animal animal;

    public void setAnimal(Animal animal) {
        this.animal = animal;
    }

    public void listenCall(){
        animal.call();
    }
}